const app = getApp();
Page({
  /**
   * 页面的初始数据
   */
  data: {
		contentSafeHeight: app.globalData.contentSafeHeight,
		titleList: [{ name: "标题1" }, { name: "标题2" }, { name: "标题3" }],
    current: 0,
  },
  onShow() {
    if (typeof this.getTabBar === "function" && this.getTabBar()) {
      this.getTabBar().setData({
        selected: 1,
      });
    }
	},
	getCurrentIndex(e) {
    let current = e.detail;
    this.setData({
      current,
    });
  },
});
